package com.ruoyi.generator.controller;

import com.alibaba.dashscope.app.Application;
import com.alibaba.dashscope.app.ApplicationParam;
import com.alibaba.dashscope.app.ApplicationResult;
import com.alibaba.dashscope.exception.ApiException;
import com.alibaba.dashscope.exception.InputRequiredException;
import com.alibaba.dashscope.exception.NoApiKeyException;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.framework.web.service.SysLoginService;
import com.ruoyi.generator.domain.Question;
import com.ruoyi.generator.domain.WorkOrder;
import com.ruoyi.generator.entity.*;
import com.ruoyi.generator.entity.bo.PlanScheduleInfoBO;
import com.ruoyi.generator.entity.vo.WorkOrderVO;
import com.ruoyi.generator.mapper.WorkOrderMapper;
import com.ruoyi.generator.service.AppService;
import com.ruoyi.generator.service.PcService;
import com.ruoyi.generator.service.WorkOrderService;
import com.ruoyi.generator.vo.MaintenanceAppVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@RestController
@RequestMapping("/pc")
public class PcController {

    @Autowired
    private PcService pcService;


    @GetMapping("/queryExportWaterQuality")
    public AjaxResult queryExportWaterQuality() {
        ExportWaterQuality exportWaterQuality = pcService.queryExportWaterQuality();
        return AjaxResult.success(exportWaterQuality);
    }








}